<template>
  <div>
    <button @click="btnClick">点击</button>
  </div>
</template>

<script>
import axios from "axios";
export default {
  methods: {
    btnClick() {
      axios({
        url: "http://123.57.109.30:3006/api/getbooks",
        method: "get",
      })
        .then((res) => {
          console.log(res);
        })
        .catch((err) => {
          console.log(err);
        });
    },
  },
};
</script>

<style>
</style>